$(document).ready(function() {
    $('.fancybox-buttons').fancybox({
        openEffect: 'none',
        closeEffect: 'none',
        prevEffect: 'none',
        nextEffect: 'none',
        closeBtn: false,
        helpers: {
            title: {
                type: 'inside'
            },
            buttons: {}
        },
        afterLoad: function() {
            this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
        }
    });

    $("#pasfotogaleri").click(function() {
        $('.fancybox-buttons').click();
    });

});
function linkriwayat(idjenisjabatan, idpegawai, alamatdasar) {
    $('#idalamatriwayatpendidikan').on('click', function() {
        // console.log(alamatdasar + "index.php/personil/personildata/detailpendforpegawai/" +idjenisjabatan+"/"+ idpegawai)
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailpendforpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatpendidikannonformal').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailpendnonforpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatdiklatfungsional').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detaildiklatfungpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatdiklatstruktural').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detaildiklatstrukgpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatdiklatteknis').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detaildiklattekgpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#detailrpangkatpegawai').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailrpangkatpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatpangkat').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailrpangkatpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatjabatan').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailrjabatanpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idalamatriwayatpenghargaan').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailrpenghargaanpegawai/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idorganisasi').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailriwayatorganisasi/" + idjenisjabatan + "/" + idpegawai)
    });
    $('#idfisik').on('click', function() {
        window.location.replace(alamatdasar + "index.php/personil/personildata/detailketbadanpegawai/" + idjenisjabatan + "/" + idpegawai)
    });

}

